#ifndef DIGITAL_PORT_H
#define DIGITAL_PORT_H
#include <DigitalInOut.h>
#include <PwmOut.h>

class DigitalPort
{
public:
    DigitalPort(PinName pin0,PinName pin1,PinName pin2,PinName pin3);
    ~DigitalPort();

    DigitalInOut& d0();
    DigitalInOut& d1();
    DigitalInOut& d2();
    DigitalInOut& d3();

    PwmOut& pwm0();
    PwmOut& pwm1();
    PwmOut& pwm2();
    PwmOut& pwm3();
private:
    DigitalInOut _d0;
    DigitalInOut _d1;
    DigitalInOut _d2;
    DigitalInOut _d3;
    PwmOut _pwm0;
    PwmOut _pwm1;
    PwmOut _pwm2;
    PwmOut _pwm3;
};

#endif